<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册页面</title>
    <style>
        *{
            margin: 0px;
            padding: 0px;
            box-sizing: border-box;
        }
        body{
            background: url("images/bg.png") no-repeat center;
            padding-top: 25px;
        }
        .img{
            width: 380px;
            height: 280px;
        }
        .rg_layout{
            width: 900px;
            height: 500px;
            border: 8px solid #EEEEEE;
            background-color: white;
            /*让div水平居中*/
            margin: auto;
        }
        .rg_left{
            /*border: 1px solid red;*/
            float: left;
            width: 290px;
            margin: 35px;
        }
        .rg_left > p:first-child{
            color:#FFD026;
            font-size: 20px;
        }

        .rg_left > p:last-child{
            color:#A6A6A6;
            font-size: 20px;

        }


        .rg_center{
            margin-top: 10px;
            width: 380px;
            float: left;
            margin: 65px;
            /* border: 1px solid red;*/
        }

        .rg_right{
            /*border: 1px solid red;*/
            width: 330px;
            float: right;
            margin-top: fill;
        }

        .rg_right > p:first-child{
            font-size: 15px;

        }
        .rg_right p a {
            color:pink;
        }

        .td_left{
            width: 100px;
            text-align: right;
            height: 45px;
        }
        .td_right{
            padding-left: 50px ;
        }

        .button {
            display: inline-block;
            border-radius: 4px;
            background-color: #f4511e;
            border: none;
            color: #FFFFFF;
            text-align: center;
            font-size: 18px;
            padding: 10px;
            width: 135px;
            transition: all 0.5s;
            cursor: pointer;
            margin: 5px;
        }

        .button span {
            cursor: pointer;
            display: inline-block;
            position: relative;
            transition: 0.5s;
        }

        .button span:after {
            content: '»';
            position: absolute;
            opacity: 0;
            top: 0;
            right: -20px;
            transition: 0.5s;
        }

        .button:hover span {
            padding-right: 25px;
        }

        .button:hover span:after {
            opacity: 1;
            right: 0;
        }

        #rusername,#rpass,#raddress,#rname{
            width: 251px;
            height: 32px;
            border: 1px solid #A6A6A6 ;
            /*设置边框圆角*/
            border-radius: 5px;
            padding-left: 10px;
        }



        #btn_sub{
            width: 150px;
            height: 40px;
            background-color: #FFD026;
            border: 1px solid #FFD026 ;
        }

    </style>

</head>
<body>

<div class="rg_layout">
    <div class="rg_left">
        <p>新用户注册</p>
        <p>USER REGISTER</p>
        <img class="img" src="images/GIF4.gif">
    </div>

    <div class="rg_center">
        <div class="rg_form">
            <!--定义表单 form-->
            <form action="restaurant/register" method="post">
                <table>
                    <tr>
                        <td class="td_left"><label for="rusername">用户名:</label></td>
                        <td class="td_right"><input type="text" name="rusername" id="rusername" placeholder="请输入用户名"></td>
                    </tr>

                    <tr>
                        <td class="td_left"><label for="rpass">密码:</label></td>
                        <td class="td_right"><input type="password" name="rpass" id="rpass" placeholder="请输入密码"></td>
                    </tr>

                    <tr>
                        <td class="td_left"><label for="raddress">店铺地址:</label></td>
                        <td class="td_right"><input type="text" name="raddress" id="raddress" placeholder="请输入地址"></td>
                    </tr>

                    <tr>
                        <td class="td_left"><label for="rname">店名:</label></td>
                        <td class="td_right"><input type="text" name="rname" id="rname" placeholder="请输入店名"></td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center"><input type="submit" id="btn_sub" value="注册"></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <div class="rg_right">
        <form action="resindex.html">
            <button class="button" style="vertical-align:middle"><span>返回主页</span></button>
        </form>
    </div>
</div>
</body>
</html>
